﻿// -----------------------------------------------------------------------
// <copyright file="Exceptions.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace Ex03.GarageLogic
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    /// <summary>
    /// This class is used to throw an out of range exceptions, derives from the generic class Exception
    /// </summary>
    public class ValueOutOfRangeException : Exception
    {
        private float m_MaxValue;
        private float m_MinValue;

        public ValueOutOfRangeException(float i_MinValue, float i_Maxvalue)
            : base(string.Format("Value entered is out of range, please enter values between {0} and {1} only!", i_MinValue, i_Maxvalue))
        {
            this.m_MaxValue = i_Maxvalue;
            this.m_MinValue = i_MinValue;
        }
    }
}
